package org.jeecg.modules.ncmeapis.processTest.processDefinition.demo;

import ncme.digital.hszy.ep.ProcessDefinition;
import ncme.digital.hszy.ep.pre.EndNode;
import ncme.digital.hszy.ep.pre.StartNode;
import org.jeecg.modules.ncmeapis.processTest.processDefinition.demo.nodes.Step4ChewAndSwallow;
import org.jeecg.modules.ncmeapis.processTest.processDefinition.demo.nodes.Step1PickUpFood;
import org.jeecg.modules.ncmeapis.processTest.processDefinition.demo.nodes.Step2OpenMouth;
import org.jeecg.modules.ncmeapis.processTest.processDefinition.demo.nodes.Step3PutInMouth;

//@Component
public class EatProcess extends ProcessDefinition {
    @Override
    public String description(StartNode processNode) {
        return "吃东西的步骤";
    }

    @Override
    public EndNode define(StartNode start) throws Exception {
        return start.link(Step1PickUpFood.class)
                .link(Step2OpenMouth.class)
                .link(Step3PutInMouth.class)
                .link(Step4ChewAndSwallow.class)
                .end();
    }
}
